<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@include file= "/WEB-INF/pages/base/commImportPage.jsp" %><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>查询统计-金属损失</title>
    <meta charset="utf-8">
	<!--[if lt IE 9]><script src="${resourcePath}js/comm/css3-mediaqueries.js"></script><![endif]-->
	<link rel="stylesheet" type="text/css" href="${resourcePath}/tags/bootstrap/bootstrap.css">

	<link rel="stylesheet" type="text/css" href="${resourcePath}/css/pipedata.css">
	<link rel="stylesheet" type="text/css" href="${resourcePath}/css/comm/Package.css">
	<link rel="stylesheet" type="text/css" href="${resourcePath}/css/insp.css">
	
</head>
<body class="body-pad" style="padding-bottom:100px">
<form id="toFind" action="${pageContext.request.contextPath}/insp/metalLoss/MetlLossAmount.json" style="display: none;" method="post">
    <input type="text" name="lineId" />
    <input type="text" name="inspSegmentId" />
    <input type="text" name="inspTaskId" />
    <input type="text" name="segmentId" />
   
</form>
<div class="html-header " style="background-color:white">
    <p class="header-title"><em class="icon-jsss"></em>金属损失</p>
</div>
<div class="container-fluid warp">
    <div class="row-fluid bg-white1">
        <div class="main clearFix pad20">
            <div class="cxtj clearFix">
                <div class="sel">
                    <div class="dropdown-list" style="float:left" data-name="lineId">
                        <div class="drop-list drop-list-min getlinename">
                            <div class="checked" style="width:270px;height:28px;">
                                <a href="javascript:void(0);"><span class="bitian">*</span>管道名称</a>
                            </div>
                            <span class="down-span"></span>
                        </div>
                        <ul class="select select-min none selectLine" style="width:293px;">
                            <c:forEach items="${lineList}" var="info">
                            	<li><a href="javascript:void(0);" id="${info.id }">${info.name }</a></li>
                            </c:forEach>
                        </ul>
                    </div>
                </div>
                <div class="sel">
                    <div class="dropdown-list" style="float:left" data-name="inspSegmentId">
                        <div class="drop-list drop-list-min">
                            <div class="checked" style="width:270px;height:28px;">
                                <a href="javascript:void(0);"><span class="bitian">*</span>检测管段名称</a>
                            </div>
                            <span class="down-span"></span>
                        </div>
                        <ul class="select select-min none selectSegment" style="width:293px;">
                           
                        </ul>
                    </div>
                </div>
                <div class="sel">
                    <div class="dropdown-list" style="float:left" data-name="inspTaskId">
                        <div class="drop-list drop-list-min">
                            <div class="checked" style="width:270px;height:28px;">
                                <a href="javascript:void(0);"><span class="bitian">*</span>检测任务名称</a>
                            </div>
                            <span class="down-span"></span>
                        </div>
                        <ul class="select select-min none selectTask" style="width:293px;">
                           
                        </ul>
                    </div>
                </div>
                <div class="sel">
                    <div class="dropdown-list" style="float:left" data-name="segmentId">
                        <div class="drop-list drop-list-min" >
                            <div class="checked" style="width:270px;height:28px;">
                                <a href="javascript:void(0);">所有管段</a>
                            </div>
                            <span class="down-span"></span>
                        </div>
                        <ul class="select select-min none segmentBox" style="width:293px;">
                           
                        </ul>
                    </div>
                </div>
                <a href="#" class="btn btn-w100 btn-search-icon btn-h30 searchBtn1" style="float:left" ><em></em>查询</a>
            </div>
            <div style="clear:both"></div>
            <div  class="tab-f" style="margin-top:20px !important;">
                <span class="sp00"></span>
                <ul>
                    <li class="active">金属损失 <em></em></li>
                    <li>内部金属损失<em></em></li>
                    <li>外部金属损失<em></em></li>
                    <li>内部制造缺陷<em></em></li>
                    <li>外部制造缺陷<em></em></li>
                </ul>
            </div>
<input type="hidden" id="getContextPath" value="${pageContext.request.contextPath}">
           <div class="tab-jsss">
               <!-- 金属损失-->
               <div class="defect-down" >
                   <div class="list-show shut ">
                       <div class="left-table">
                          <div id="addName"><p>内检测金属损失总结表</p></div> 
                           <table id="allmt">
                               <tr>
                                   <td class="first">所有金属损失数量</td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1">0</a></td>
                               </tr>
                               <tr class="second-tr">
                                   <td class="first">外部金属损失数量</td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06301'">0</a></td>
                               </tr>
                               <tr>
                                   <td class="first">内部金属损失数量</td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06302'">0</a></td>
                               </tr>
                               <tr class="second-tr">
                                   <td class="first">外部制造缺陷数量</td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06303'">0</a></td>
                               </tr>
                               <tr>
                                   <td class="first" >内部制造缺陷数量</td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06304'">0</a></td>
                               </tr>
                               <tr class="second-tr">
                                   <td class="first">ERF＞1.0 <span></span></td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&erf=1">0</a></td>
                               </tr>
                               <tr>
                                   <td class="first">最大深度的金属损失</td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&maxDepth=1">0</a></td>
                               </tr>
                               <tr class="second-tr">
                                   <td class="first">最大ERF值</td>
                                   <td class=""><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&maxErf=1">0</a></td>
                               </tr>
                           </table>
                       </div>
                       <div class="right-report clearfix">
                           <div class="rep-form form0">
                               <div id="ball"  class="zhuzhuang" ><img src="${resourcePath}/images/insp/u160.png" alt=""/></div>
                               <p>金属损失分布饼状图</p>
                           </div>
                           <div class="rep-form form1 no-right">
                               <div id="tzt" class="zhuzhuang"><img src="${resourcePath}/images/insp/u162.png" alt=""/></div>
                               <p>金属损失分布柱状图</p>
                           </div>
                           <div style="clear:both"></div>
                           <div class="rep-form form2">
                               <div id="xf" class="zhuzhuang"><img src="${resourcePath}/images/insp/u164.png" alt=""/></div>
                               <p>ERF值统计柱状图</p>
                           </div>
                           <div class="rep-form form3 no-right">
                               <div id ="szs" class="zhuzhuang"><img src="${resourcePath}/images/insp/u144.png" alt=""/></div>
                               <p>金属损失及制造缺陷时钟分布饼状图</p>
                           </div>
                       </div>
                   </div>
               </div>
               <!-- 内部金属损失-->
               <div class="defect-down none">
                   <div class="list-show shut">
                       <div class="left-table">
                           <p>内部金属损失总结表</p>
                           <table id="MTNS">
                               <tr>
		                     		<td class="first ">内部金属损失总数</td>

	                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06302'">${(not empty smap['METALOSS_TYPE_NBJSSS']['allcount']&&"" ne fn:trim(smap['METALOSS_TYPE_NBJSSS']['allcount']))?smap['METALOSS_TYPE_NBJSSS']['allcount']:'0'}</a></td>
	                        </tr>
                            <tr class="second-tr">
                                <td class="first">0%wt -10%wt</td>
                                <td> <a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06302'&beginDepth=0&endDepth=10">${(not empty smap['METALOSS_TYPE_NBJSSS']['List']['ZEROTOTEN']&&"" ne fn:trim(smap['METALOSS_TYPE_NBJSSS']['List']['ZEROTOTEN']))?smap['METALOSS_TYPE_NBJSSS']['List']['ZEROTOTEN']:'0'}</a></td>
                            </tr>
                            <tr>
                                <td class="first">10%wt -20%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06302'&beginDepth=10&endDepth=20">${(not empty smap['METALOSS_TYPE_NBJSSS']['List']['TENTOTWEN']&&"" ne fn:trim(smap['METALOSS_TYPE_NBJSSS']['List']['TENTOTWEN']))?smap['METALOSS_TYPE_NBJSSS']['List']['TENTOTWEN']:'0'}</a></td>
                            </tr>
                            <tr class="second-tr">
                                <td class="first">20%wt -30%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06302'&beginDepth=20&endDepth=30">${(not empty smap['METALOSS_TYPE_NBJSSS']['List']['TWENTOTHIR']&&"" ne fn:trim(smap['METALOSS_TYPE_NBJSSS']['List']['TWENTOTHIR']))?smap['METALOSS_TYPE_NBJSSS']['List']['TWENTOTHIR']:'0'}</a></td>
                            </tr>
                            <tr>
                                <td class="first">30%wt -40%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06302'&beginDepth=30&endDepth=40">${(not empty smap['METALOSS_TYPE_NBJSSS']['List']['THIRTOFOR']&&"" ne fn:trim(smap['METALOSS_TYPE_NBJSSS']['List']['THIRTOFOR']))?smap['METALOSS_TYPE_NBJSSS']['List']['THIRTOFOR']:'0'}</a></td>
                            </tr>
                            <tr class="second-tr">
                                <td class="first">40%wt -50%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06302'&beginDepth=40&endDepth=50">${(not empty smap['METALOSS_TYPE_NBJSSS']['List']['FORTOFIF']&&"" ne fn:trim(smap['METALOSS_TYPE_NBJSSS']['List']['FORTOFIF']))?smap['METALOSS_TYPE_NBJSSS']['List']['FORTOFIF']:'0'}</a></td>
                            </tr>
                            <tr>
                                <td class="first">50%wt以上</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06302'&beginDepth=50">${(not empty smap['METALOSS_TYPE_NBJSSS']['List']['MORETHANFIF']&&"" ne fn:trim(smap['METALOSS_TYPE_NBJSSS']['List']['MORETHANFIF']))?smap['METALOSS_TYPE_NBJSSS']['List']['MORETHANFIF']:'0'}</a></td>
                            </tr >
                               <tr class="second-tr">
                                   <td class="first">ERF＞1.0 <span></span></td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06302'&erf=1">${(not empty smap['METALOSS_TYPE_NBJSSS']['List']['ERF']&&"" ne fn:trim(smap['METALOSS_TYPE_NBJSSS']['List']['ERF']))?smap['METALOSS_TYPE_NBJSSS']['List']['ERF']:'0'}</a></td>
                               </tr>
                               <tr>
                                   <td class="first">最大深度的金属损失</td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06302'&maxDepth=1">0</a></td>
                               </tr>
                               <tr class="second-tr">
                                   <td class="first">最大ERF值</td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06302'&maxErf=1">0</a></td>
                               </tr>
                           </table>
                       </div>
                       <div class="right-report clearfix">
                           <div class="rep-form form0">
                               <div id="ba" class="zhuzhuang">
                                   <img src="${resourcePath}/images/insp/u160.png" alt=""/>
                               </div>
                               <p>特征深度分布统计图</p>
                           </div>
                           <div class="rep-form form1 no-right">
                               <div id="tza" class="zhuzhuang">
                                   <img src="${resourcePath}/images/insp/u162.png" alt=""/>
                               </div>
                               <p>特征数量统计图</p>
                           </div>
                           <div style="clear:both"></div>
                           <div class="rep-form form2">
                               <div>
                                   <img src="${resourcePath}/images/insp/u164.png" alt=""/>
                               </div>
                               <p>特征深度比例统计图</p>
                           </div>
                           <div class="rep-form form3 no-right">
                               <div id="sza" class="zhuzhuang">
                                   <img src="${resourcePath}/images/insp/u144.png" alt=""/>
                               </div>
                               <p>特征时钟位置分布饼状图</p>
                           </div>
                       </div>
                   </div>
               </div>
               <!-- 外部金属损失-->
               <div class="defect-down none">
                   <div class="list-show shut">
                       <div class="left-table">
                           <p>外部金属损失总结表</p>
                           <table id="MTWS">
                               <tr>
                                <td class="first">外部金属损失总数</td>
                                <td><a href=""to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06301'"><%-- ${smap['METALOSS_TYPE_WBJSSS']['allcount']} --%>0</a></td>
                            </tr>
                           <tr class="second-tr">
                                <td class="first">0%wt -10%wt</td>
                                <td> <a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06301'&beginDepth=0&endDepth=10">${(not empty smap['METALOSS_TYPE_WBJSSS']['List']['ZEROTOTEN']&&"" ne fn:trim(smap['METALOSS_TYPE_WBJSSS']['List']['ZEROTOTEN']))?smap['METALOSS_TYPE_WBJSSS']['List']['ZEROTOTEN']:'0'}</a></td>
                            </tr>
                            <tr>
                                <td class="first">10%wt -20%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06301'&beginDepth=10&endDepth=20">${(not empty smap['METALOSS_TYPE_WBJSSS']['List']['TENTOTWEN']&&"" ne fn:trim(smap['METALOSS_TYPE_WBJSSS']['List']['TENTOTWEN']))?smap['METALOSS_TYPE_WBJSSS']['List']['TENTOTWEN']:'0'}</a></td>
                            </tr>
                            <tr class="second-tr">
                                <td class="first">20%wt -30%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06301'&beginDepth=20&endDepth=30">${(not empty smap['METALOSS_TYPE_WBJSSS']['List']['TWENTOTHIR']&&"" ne fn:trim(smap['METALOSS_TYPE_WBJSSS']['List']['TWENTOTHIR']))?smap['METALOSS_TYPE_WBJSSS']['List']['TWENTOTHIR']:'0'}</a></td>
                            </tr>
                            <tr>
                                <td class="first">30%wt -40%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06301'&beginDepth=30&endDepth=40">${(not empty smap['METALOSS_TYPE_WBJSSS']['List']['THIRTOFOR']&&"" ne fn:trim(smap['METALOSS_TYPE_WBJSSS']['List']['THIRTOFOR']))?smap['METALOSS_TYPE_WBJSSS']['List']['THIRTOFOR']:'0'}</a></td>
                            </tr>
                            <tr class="second-tr">
                                <td class="first">40%wt -50%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06301'&beginDepth=40&endDepth=50">${(not empty smap['METALOSS_TYPE_WBJSSS']['List']['FORTOFIF']&&"" ne fn:trim(smap['METALOSS_TYPE_WBJSSS']['List']['FORTOFIF']))?smap['METALOSS_TYPE_WBJSSS']['List']['FORTOFIF']:'0'}</a></td>
                            </tr>
                            <tr>
                                <td class="first">50%wt以上</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06301'&beginDepth=50">${(not empty smap['METALOSS_TYPE_WBJSSS']['List']['MORETHANFIF']&&"" ne fn:trim(smap['METALOSS_TYPE_WBJSSS']['List']['MORETHANFIF']))?smap['METALOSS_TYPE_WBJSSS']['List']['MORETHANFIF']:'0'}</a></td>
                            </tr >
                               <tr class="second-tr">
                                   <td class="first">ERF＞1.0 <span></span></td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06301'&erf=1">0</a></td>
                               </tr>
                               <tr>
                                   <td class="first" >最大深度的金属损失</td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06301'&maxDepth=1">0</a></td>
                               </tr>
                               <tr class="second-tr">
                                   <td class="first">最大ERF值</td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06301'">0</a></td>
                               </tr>
                           </table>
                       </div>
                       <div class="right-report clearfix">
                           <div class="rep-form form0">
                               <div id="bb" class="zhuzhuang">
                                   <img src="${resourcePath}/images/insp/u160.png" alt=""/>
                               </div>
                               <p>特征深度分布统计图</p>
                           </div>
                           <div class="rep-form form1 no-right">
                               <div id="tzb" class="zhuzhuang">
                                   <img src="${resourcePath}/images/insp/u162.png" alt=""/>
                               </div>
                               <p>特征数量统计图</p>
                           </div>
                           <div style="clear:both"></div>
                           <div class="rep-form form2">
                               <div>
                                   <img src="${resourcePath}/images/insp/u164.png" alt=""/>
                               </div>
                               <p>特征深度比例统计图</p>
                           </div>
                           <div class="rep-form form3 no-right">
                               <div id="szb" class="zhuzhuang">
                                   <img src="${resourcePath}/images/insp/u144.png" alt=""/>
                               </div>
                               <p>特征时钟位置分布饼状图</p>
                           </div>
                       </div>
                   </div>
               </div>
               <!-- 内部制造缺陷-->
               <div class="defect-down none">
                   <div class="list-show shut">
                       <div class="left-table">
                           <p>内部制造缺陷总结表</p>
                          <table id="mtnx">
                            <tr>
                                <td class="first">内部制造缺陷总数</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06304'"><%-- ${smap['METALOSS_TYPE_NBJSSS']['allcount']} --%>0</a></td>
                            </tr>
                            <tr class="second-tr">
                                <td class="first">0%wt -10%wt</td>
                                <td> <a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06304'&beginDepth=0&endDepth=10">${(not empty smap['METALOSS_TYPE_NBJSSS']['List']['ZEROTOTEN']&&"" ne fn:trim(smap['METALOSS_TYPE_NBJSSS']['List']['ZEROTOTEN']))?smap['METALOSS_TYPE_NBJSSS']['List']['ZEROTOTEN']:'0'}</a></td>
                            </tr>
                            <tr>
                                <td class="first">10%wt -20%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06304'&beginDepth=10&endDepth=20">${(not empty smap['METALOSS_TYPE_NBJSSS']['List']['TENTOTWEN']&&"" ne fn:trim(smap['METALOSS_TYPE_NBJSSS']['List']['TENTOTWEN']))?smap['METALOSS_TYPE_NBJSSS']['List']['TENTOTWEN']:'0'}</a></td>
                            </tr>
                            <tr class="second-tr">
                                <td class="first">20%wt -30%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06304'&beginDepth=20&endDepth=30">${(not empty smap['METALOSS_TYPE_NBJSSS']['List']['TWENTOTHIR']&&"" ne fn:trim(smap['METALOSS_TYPE_NBJSSS']['List']['TWENTOTHIR']))?smap['METALOSS_TYPE_NBJSSS']['List']['TWENTOTHIR']:'0'}</a></td>
                            </tr>
                            <tr>
                                <td class="first">30%wt -40%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06304'&beginDepth=30&endDepth=40">${(not empty smap['METALOSS_TYPE_NBJSSS']['List']['THIRTOFOR']&&"" ne fn:trim(smap['METALOSS_TYPE_NBJSSS']['List']['THIRTOFOR']))?smap['METALOSS_TYPE_NBJSSS']['List']['THIRTOFOR']:'0'}</a></td>
                            </tr>
                            <tr class="second-tr">
                                <td class="first">40%wt -50%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06304'&beginDepth=40&endDepth=50">${(not empty smap['METALOSS_TYPE_NBJSSS']['List']['FORTOFIF']&&"" ne fn:trim(smap['METALOSS_TYPE_NBJSSS']['List']['FORTOFIF']))?smap['METALOSS_TYPE_NBJSSS']['List']['FORTOFIF']:'0'}</a></td>
                            </tr>
                            <tr>
                                <td class="first">50%wt以上</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06304'&beginDepth=50">${(not empty smap['METALOSS_TYPE_NBJSSS']['List']['MORETHANFIF']&&"" ne fn:trim(smap['METALOSS_TYPE_NBJSSS']['List']['MORETHANFIF']))?smap['METALOSS_TYPE_NBJSSS']['List']['MORETHANFIF']:'0'}</a></td>
                            </tr >
                               <tr class="second-tr">
                                   <td class="first">ERF＞1.0 <span></span></td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06304'&erf=1">0</a></td>
                               </tr>
                               <tr>
                                   <td class="first">最大深度的金属损失</td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06304'&maxDepth=1">0</a></td>
                               </tr>
                               <tr class="second-tr">
                                   <td class="first">最大ERF值</td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06304'&maxErf=1">0</a></td>
                               </tr>
                           </table>
                       </div>
                       <div class="right-report clearfix">
                           <div class="rep-form form0">
                               <div id="bc" class="zhuzhuang">
<img src="${resourcePath}/images/insp/u160.png" alt=""/>
                               </div>
                               <p>特征深度分布统计图</p>
                           </div>
                           <div class="rep-form form1 no-right">
                               <div id="tzc" class="zhuzhuang">
                                   <img src="${resourcePath}/images/insp/u162.png" alt=""/>
                               </div>
                               <p>特征数量统计图</p>
                           </div>
                           <div style="clear:both"></div>
                           <div class="rep-form form2">
                               <div>
                                   <img src="${resourcePath}/images/insp/u164.png" alt=""/>
                               </div>
                               <p>特征深度比例统计图</p>
                           </div>
                           <div class="rep-form form3 no-right">
                               <div id="szc" class="zhuzhuang">
                                   <img src="${resourcePath}/images/insp/u144.png" alt=""/>
                               </div>
                               <p>特征时钟位置分布饼状图</p>
                           </div>
                       </div>
                   </div>
               </div>
               <!-- 外部制造缺陷-->
               <div class="defect-down none">
                   <div class="list-show shut">
                       <div class="left-table">
                           <p>外部制造缺陷总结表</p>
                            <table id= "MTWX">
                            <tr>
                                <td class="first">外部制造缺陷总数</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06303'"><%-- ${smap['METALOSS_TYPE_WBZCQX']['allcount']} --%>0</a></td>
                            </tr>
                           <tr class="second-tr">
                                <td class="first">0%wt -10%wt</td>
                                <td> <a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06303'&beginDepth=0&endDepth=10">${(not empty smap['METALOSS_TYPE_WBZCQX']['List']['ZEROTOTEN']&&"" ne fn:trim(smap['METALOSS_TYPE_WBZCQX']['List']['ZEROTOTEN']))?smap['METALOSS_TYPE_WBZCQX']['List']['ZEROTOTEN']:'0'}</a></td>
                            </tr>
                            <tr>
                                <td class="first">10%wt -20%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06303'&beginDepth=10&endDepth=20">${(not empty smap['METALOSS_TYPE_WBZCQX']['List']['TENTOTWEN']&&"" ne fn:trim(smap['METALOSS_TYPE_WBZCQX']['List']['TENTOTWEN']))?smap['METALOSS_TYPE_WBZCQX']['List']['TENTOTWEN']:'0'}</a></td>
                            </tr>
                            <tr class="second-tr">
                                <td class="first">20%wt -30%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06303'&beginDepth=20&endDepth=30">${(not empty smap['METALOSS_TYPE_WBZCQX']['List']['TWENTOTHIR']&&"" ne fn:trim(smap['METALOSS_TYPE_WBZCQX']['List']['TWENTOTHIR']))?smap['METALOSS_TYPE_WBZCQX']['List']['TWENTOTHIR']:'0'}</a></td>
                            </tr>
                            <tr>
                                <td class="first">30%wt -40%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06303'&beginDepth=30&endDepth=40">${(not empty smap['METALOSS_TYPE_WBZCQX']['List']['THIRTOFOR']&&"" ne fn:trim(smap['METALOSS_TYPE_WBZCQX']['List']['THIRTOFOR']))?smap['METALOSS_TYPE_WBZCQX']['List']['THIRTOFOR']:'0'}</a></td>
                            </tr>
                            <tr class="second-tr">
                                <td class="first">40%wt -50%wt</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06303'&beginDepth=40&endDepth=50">${(not empty smap['METALOSS_TYPE_WBZCQX']['List']['FORTOFIF']&&"" ne fn:trim(smap['METALOSS_TYPE_WBZCQX']['List']['FORTOFIF']))?smap['METALOSS_TYPE_WBZCQX']['List']['FORTOFIF']:'0'}</a></td>
                            </tr>
                            <tr>
                                <td class="first">50%wt以上</td>
                                <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06303'&beginDepth=50">${(not empty smap['METALOSS_TYPE_WBZCQX']['List']['MORETHANFIF']&&"" ne fn:trim(smap['METALOSS_TYPE_WBZCQX']['List']['MORETHANFIF']))?smap['METALOSS_TYPE_WBZCQX']['List']['MORETHANFIF']:'0'}</a></td>
                            </tr >
                               <tr class="second-tr">
                                   <td class="first">ERF＞1.0 <span></span></td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06303'&erf=1">0</a></td>
                               </tr>
                               <tr>
                                   <td class="first">最大深度的金属损失</td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06303'maxDepth=1">0</a></td>
                               </tr>
                               <tr class="second-tr">
                                   <td class="first">最大ERF值</td>
                                   <td><a href="" to="<%=request.getContextPath() %>/insp/metalLoss.html?t_=1&typeIds='1E3290704BF1749EE0530E0AA8C06303'maxErf=1">0</a></td>
                               </tr>
                           </table>
                       </div>
                       <div class="right-report clearfix">
                           <div class="rep-form form0">
                               <div id="bd" class="zhuzhuang">
                                   <img src="${resourcePath}/images/insp/u160.png" alt=""/>
                               </div>
                               <p>特征深度分布统计图</p>
                           </div>
                           <div class="rep-form form1 no-right">
                               <div id="tzd" class="zhuzhuang">
                                   <img src="${resourcePath}/images/insp/u162.png" alt=""/>
                               </div>
                               <p>特征数量统计图</p>
                           </div>
                           <div style="clear:both"></div>
                           <div class="rep-form form2">
                               <div>
                                   <img src="${resourcePath}/images/insp/u164.png" alt=""/>
                               </div>
                               <p>特征深度比例统计图</p>
                           </div>
                           <div class="rep-form form3 no-right">
                               <div id=szd class="zhuzhuang">
                                   <img src="${resourcePath}/images/insp/u144.png" alt=""/>
                               </div>
                               <p>特征时钟位置分布饼状图</p>
                           </div>
                       </div>
                   </div>
               </div>
           </div>
        </div>
    </div>
</div>
<script src="${resourcePath}/js/comm/jquery.js"></script>
	<script src="${resourcePath}/js/comm/build.js"></script>
	<script src="${resourcePath}/tags/bootstrap/bootstrap.min.js"></script>

	<script src="${resourcePath}/js/insp.js"></script>
	<script src="${resourcePath}/tags/reportforms/d3/d3.min.js"></script>
	<script src="${resourcePath}/tags/reportforms/d3/timeMap.js"></script>
	<script src="${resourcePath}/tags/reportforms/build/dist/echarts.js"></script>
	<script src="${resourcePath}/tags/reportforms/JS/picECharts.js"></script>

	<script src="${pageContext.request.contextPath}/js/insp/inspresult/util.js"></script>
<script type="text/javascript">

  function tabHandler(){
	
	 $(".left-table table tr td a").attr("href","javascript:;");
		$(".left-table table tr td a").live("click",function(){
			
			var lineId=$("div.dropdown-list[data-name='lineId']").find("a").attr("id");
			var taskSegmentId=$("div.dropdown-list[data-name='inspSegmentId']").find("a").attr("id");
			var taskId=$("div.dropdown-list[data-name='inspTaskId']").find("a").attr("id");
			var segmentId=$("div.dropdown-list[data-name='segmentId']").find("a").attr("id");
			/*
			var segment=$(".ck1[data-name] span.check-box .active");
			var segmentId=segment.parent().parent().attr("data");
			*/
			if(typeof(lineId) != "undefined" && typeof(taskSegmentId) != "undefined" &&
			   typeof(taskId) != "undefined" && lineId != "" &&
			   taskSegmentId != "" && taskId != "" 
			){
				var url=$(this).attr("to")+"&lineId="+lineId+"&taskSegmentId="+taskSegmentId+"&taskId="+taskId;
				if(typeof(segmentId) != "undefined" && segmentId!=""){
					url+="&segmentId="+segmentId;
				}
				window.location.href=url;
			}else{
				alert("请选择必选项")
			}
			
			
			
		});
	
}







$(function(){
//	submitForm(1,10);
	tabHandler();
	$(".selectLine a").click(function(){
		resultAjax(getJsPath()+"../insp/metalLoss/taskSegment.json","lineId="+$(this).attr("id"),setTaskSegment,"JSON");
	});
	$("a.searchBtn1").unbind("click").click(function(){
		submitForm(1,0);
		tabHandler();
		getLineNameByLineId();
		//获得管道id 检测管道id 检测任务  id 物理管段id

	})
	
});

/**
 * 设置任务管段数据
 * @param data
 */
function setTaskSegment(data){
	
	$(".selectSegment").empty();
	
	for(var i = 0;i<data.length;i++)
	{
		$(".selectSegment").append('<li><a href="javascript:void(0);" id="'+data[i].ID+'">'+data[i].NAME+'</a></li>');
	}
	
	//添加检测管段选择事件
	
	$(".selectSegment li a").unbind("click").click(function(){
		//查询检测任务
		resultAjax(getJsPath()+"../insp/metalLoss/task.json","taskSegmentId="+$(this).attr("id"),parseTask,"JSON");
		//查询物理管段
		resultAjax(getJsPath()+"../insp/metalLoss/segment.json","taskSegmentId="+$(this).attr("id"),setSegment,"JSON");
	});
	
	//已选着项目置为默认值
	var baseSelect = $(".selectSegment").parent().find(".drop-list-min a");
	baseSelect.html("<span class=\"bitian\">*</span>检测管段名称");
	baseSelect.removeAttr("id");
	
	baseSelect = $(".selectTask").parent().find(".drop-list-min a");
	baseSelect.html("<span class=\"bitian\">*</span>检测任务名称");
	baseSelect.removeAttr("id");
	
	
	$(".segment.all em").addClass("active");
	
	
	$(".dropdown-list .select li").live('click',function()
	{
        var $txt = $(this).find('a').clone();
        var $checkedBox = $(this).parents('.dropdown-list').find('.checked');
        $checkedBox.html($txt);
        $(this).parent().addClass('none');
        $(this).parents('.dropdown-list').find('.checked').removeClass('current');
        return false;
    });
}

/**
 * 解析后台返回的task数据并生成html
 * @param data
 */
function parseTask(data)
{
	$(".selectTask").empty();
	for(var i=0;i<data.length;i++)
	{
		$(".selectTask").append('<li><a href="javascript:void(0);" id="'+data[i].ID+'">'+data[i].NAME+'</a></li>');
	}
	
}
/**segment
 * 解析后台返回的物理管段数据
 * @param data
 */
function setSegment(data)

{
	$(".segmentBox").empty();
	for(var i=0;i<data.length;i++)
	{
		$(".segmentBox").append('<li><a href="javascript:void(0);" id="'+data[i].ID+'">'+data[i].NAME+'</a></li>');
	}
}



/**
 * 开始搜索查询
 * @param pageNo 当前页码
 * @param pageSize 每页显示条数
 */
function submitForm(pageNo,pageSize){
	var lineId=false;
	var taskSegmentId=false;
	var taskId=false;
	
	if($(".segment.all .active").length > 0){
		enlist=1;
	}else{
		enlist=0;
	}
	
	
	var data="current="+pageNo+"&pageCount="+pageSize+"&enlist="+enlist;
	
	//单选框
	$(".ck1[data-name] span.check-box .active").each(function(){
		data+="&"+$(this).parent().parent().attr("data-name")+"="+$(this).parent().parent().attr("data");
	});
	
	//复选框
	$(".ck span.check-box.selected[data-name]").each(function(){
		
		
		data+="&"+$(this).attr("data-name")+"="+$(this).attr("data");
		
	})
	
	
	
	
	$("input[data-name]").each(function(){
		if( $(this).val().length > 0 )
		{
			data+="&"+$(this).attr("data-name")+"="+$(this).val();
		}
	})
	
	//下拉
	$("div.dropdown-list[data-name]").each(function(){
		if($(this).find("a").attr("id") != "" && $(this).find("a").attr("id") != undefined)
		{
			data+="&"+$(this).attr("data-name")+"="+$(this).find("a").attr("id");

			if($(this).attr("data-name") == "lineId"){
				
				lineId=true;
			}else if($(this).attr("data-name") == "inspSegmentId"){
				
				taskSegmentId=true;
			}else if($(this).attr("data-name") == "inspTaskId"){
				
				taskId=true;
			}else if ($(this).attr("data-name")=="segmentId"){
				
				segmentId=true;
			}
		}
		
		
	})

	if(lineId && taskSegmentId && taskId){
		getAllcountBydata(data);
		
	}else{
		
		alert("请对必选项目赋值");
		return;
	}
	
	//获取物理管段id
	
	

}

///////////////////////////////
       //取得管道名称
       function getLineNameByLineId(){
    	   //var testName=$(".getlinename a").html();
    	   //$("#addName").append('<p>'+testName+'内检测金属损失总结表</p>');
    	   $("#addName").html('<p>内检测金属损失总结表</p>');
       }
       
       function getAllcountBydata(data){
    	
    	 //特征统计饼状图
   	    $.ajax({
   			url : "${pageContext.request.contextPath}/insp/metalLoss/MetlLossAmount.json",
   			type : "post",
   			dataType : "json",
   			 data:data,
   			success : function(data) {
   				//外部金属损失
   				smap = data.smap.METALOSS_TYPE_WBJSSS.List;
   				tmap = data.tmap.ALLMETALOSS;
   				tmap1 = data.tmap.METALOSS_TYPE_NBJSSS;
   				tmap2 = data.tmap.METALOSS_TYPE_NBZCQX;
   				tmap3 = data.tmap.METALOSS_TYPE_WBJSSS;
   				tmap4 = data.tmap.METALOSS_TYPE_WBZCQX;
   			    
   				
   				var map=new createTimeMap("#szs",tmap,"",function(d){});
   				var map=new createTimeMap("#sza",tmap1,"",function(d){});
   				var map=new createTimeMap("#szb",tmap3,"",function(d){});
   				var map=new createTimeMap("#szc",tmap2,"",function(d){});
   				var map=new createTimeMap("#szd",tmap4,"",function(d){});
   				//总体时钟统计饼图
   					//外部金属损失；   METALOSS_TYPE_WBJSSS
   				//内部金属损失；   METALOSS_TYPE_NBJSSS
   				//外部制造缺陷；  METALOSS_TYPE_WBZCQX
   				//内部制造缺陷；   METALOSS_TYPE_NBZCQX
   				var picECharts = new PicEChart();
   				var dataallN = new Array();
   				var legendsall = new Array();
   				var mtnsss=data.smap.METALOSS_TYPE_NBJSSS.allcount;
   				var mtmcqx=data.smap.METALOSS_TYPE_NBZCQX.allcount;
   				var mtwsss=data.smap.METALOSS_TYPE_WBJSSS.allcount;
   				var mtwcqx=data.smap.METALOSS_TYPE_WBZCQX.allcount;
   				legendsall.push('外部金属损失');
   				legendsall.push('内部金属损失');
   				legendsall.push('外部制造缺陷');
   				legendsall.push('内部制造缺陷');
   				dataallN.push({value : mtnsss ,name : '内部金属损失'})
   				dataallN.push({value : mtmcqx ,name : '外部制造缺陷'})
   				dataallN.push({value : mtwsss,name : '外部金属损失'})
   				dataallN.push({value : mtwcqx,name : '内部制造缺陷'})
   				if(mtnsss!=0 || mtmcqx!=0 ||mtwsss!=0 || mtwcqx!=0){
   					
   					picECharts.addPie({
   	   					type : 'pie',
   	   					title : '',
   	   					legends : legendsall,
   	   					data : dataallN,
   	   					divObject : 'ball'
   	   				});
   				}
   				
   				
   				var data1 = new Array();
   				var legends = new Array();

   				legends.push('0%wt -10%wt');
   				legends.push('10%wt -20%wt');
   				legends.push('20%wt -30%wt');
   				legends.push('30%wt -40%wt');
   				legends.push('40%wt -50%wt');
   				legends.push('50%wt以上');
   				
//   	 			/* ZEROTOTEN, TENTOTWEN, TWENTOTHIR, THIRTOFOR, FORTOFIF, MORETHANFIF, ERF */
				var zer=smap.ZEROTOTEN;if(zer==null){zer = 0;}
				var ten=smap.TENTOTWEN;if(ten==null){ten = 0;}
				var twe=smap.TWENTOTHIR;if(twe==null){twe=0;}
				var thi=smap.THIRTOFOR;if(thi==null){thi=0;}
				var fot=smap.FORTOFIF;if(fot==null){fot=0;}
				var mor=smap.MORETHANFIF;if(mor==null){mor=0;}
					data1.push({value :zer ,name : '0%wt -10%wt'})
	   				data1.push({value :ten ,name : '10%wt -20%wt'})
	   				data1.push({value : twe,name : '20%wt -30%wt'})
	   				data1.push({value : thi,name : '30%wt -40%wt'})
	   				data1.push({value : fot,name : '40%wt -50%wt'})
	   				data1.push({value : mor,name : '50%wt以上'})
	   				if(zer!=0 || ten!=0 || twe!=0 || thi!=0 || fot!=0 || mor!=0){
	   				picECharts.addPie({
	   					type : 'pie',
	   					title : '',
	   					legends : legends,
	   					data : data1,
	   					divObject : 'bb'
	   				});}
	   			/* if(zer!=0 && ten!=0 && twe!=0 && thi!=0 && fot!=0 && mor!=0){

				} */
				
   				
   				
   				//内部金属损失
   				smap2 = data.smap.METALOSS_TYPE_NBJSSS.List;
   				var data2 = new Array();
   				
//   	 			/* ZEROTOTEN, TENTOTWEN, TWENTOTHIR, THIRTOFOR, FORTOFIF, MORETHANFIF, ERF */
   				var zer2=smap2.ZEROTOTEN;if(zer2==null){zer2 = 0;}
				var ten2=smap2.TENTOTWEN;if(ten2==null){ten2 = 0;}
				var twe2=smap2.TWENTOTHIR;if(twe2==null){twe2=0;}
				var thi2=smap2.THIRTOFOR;if(thi2==null){thi2=0;}
				var fot2=smap2.FORTOFIF;if(fot2==null){fot2=0;}
				var mor2=smap2.MORETHANFIF;if(mor2==null){mor2=0;}
				data2.push({value :zer2 ,name : '0%wt -10%wt'})
   				data2.push({value :ten2 ,name : '10%wt -20%wt'})
   				data2.push({value : twe2,name : '20%wt -30%wt'})
   				data2.push({value : thi2,name : '30%wt -40%wt'})
   				data2.push({value : fot2,name : '40%wt -50%wt'})
   				data2.push({value : mor2,name : '50%wt以上'})
   				
   				if(zer2!=0 || ten2!=0 || twe2!=0 || thi2!=0 || fot2!=0 || mor2!=0){
   					
   				picECharts.addPie({
   					type : 'pie',
   					title : '',
   					legends : legends,
   					data : data2,
   					divObject : 'ba'
   				});}
   				//外部制造缺陷
   				smap3 = data.smap.METALOSS_TYPE_WBZCQX.List;
   				var data3 = new Array();
//   	 			/* ZEROTOTEN, TENTOTWEN, TWENTOTHIR, THIRTOFOR, FORTOFIF, MORETHANFIF, ERF */
   				var zer3=smap3.ZEROTOTEN;if(zer3==null){zer3 = 0;}
				var ten3=smap3.TENTOTWEN;if(ten3==null){ten3 = 0;}
				var twe3=smap3.TWENTOTHIR;if(twe3==null){twe3=0;}
				var thi3=smap3.THIRTOFOR;if(thi3==null){thi3=0;}
				var fot3=smap3.FORTOFIF;if(fot3==null){fot3=0;}
				var mor3=smap3.MORETHANFIF;if(mor3==null){mor3=0;}
				data3.push({value :zer3 ,name : '0%wt -10%wt'})
   				data3.push({value :ten3 ,name : '10%wt -20%wt'})
   				data3.push({value : twe3,name : '20%wt -30%wt'})
   				data3.push({value : thi3,name : '30%wt -40%wt'})
   				data3.push({value : fot3,name : '40%wt -50%wt'})
   				data3.push({value : mor3,name : '50%wt以上'})
   			
				if(zer3!=0 || ten3!=0 || twe3!=0 || thi3!=0 || fot3!=0 || mor3!=0){
					
   				picECharts.addPie({
   					type : 'pie',
   					title : '',
   					legends : legends,
   					data : data3,
   					divObject : 'bd'
   				});
   				}
   				
   				//内部制造缺陷
   				smap4 = data.smap.METALOSS_TYPE_NBZCQX.List;
   				
   				
   				var data4 = new Array();
//   	 			/* ZEROTOTEN, TENTOTWEN, TWENTOTHIR, THIRTOFOR, FORTOFIF, MORETHANFIF, ERF */
   				var zer4=smap4.ZEROTOTEN;if(zer4==null){zer4 = 0;}
				var ten4=smap4.TENTOTWEN;if(ten4==null){ten4 = 0;}
				var twe4=smap4.TWENTOTHIR;if(twe4==null){twe4=0;}
				var thi4=smap4.THIRTOFOR;if(thi4==null){thi4=0;}
				var fot4=smap4.FORTOFIF;if(fot4==null){fot4=0;}
				var mor4=smap4.MORETHANFIF;if(mor4==null){mor4=0;}
				data4.push({value :zer4 ,name : '0%wt -10%wt'})
   				data4.push({value :ten4 ,name : '10%wt -20%wt'})
   				data4.push({value : twe4,name : '20%wt -30%wt'})
   				data4.push({value : thi4,name : '30%wt -40%wt'})
   				data4.push({value : fot4,name : '40%wt -50%wt'})
   				data4.push({value : mor4,name : '50%wt以上'})
   				if(zer4!=0 || ten4!=0 || twe4!=0 || thi4!=0 || fot4!=0 || mor4!=0){
   					
   					picECharts.addPie({
   	   					type : 'pie',
   	   					title : '',
   	   					legends : legends,
   	   					data : data4,
   	   					divObject : 'bc'
   	   				});
   					
   				}
   				
   			//////////////////////////////////////////////////////////	
   	
   			//数据追加METALOSS_TYPE_NBJSSS
   	   			var html='';
   	   			//获取追加数据+内部金属损失
   	   			cmap1 = data.smap.METALOSS_TYPE_NBJSSS.List;
   	   			count1 = data.smap.METALOSS_TYPE_NBJSSS.allcount;
   	   			var maxErf=0;//最大erf
   	   			var maxMatal=0;//最大金属损失
   	   			if(count1!=0){
   	   			maxErf=1;
   	   			maxMatal=1;
   	   			}
   	   			if(count1==""||count1==null){
   	   			count1="0";
   	   			}
   	   			//0%wt -10%wt
   				var ntn1=cmap1.ZEROTOTEN;
   				if(ntn1==""||ntn1==null){
   					ntn1="0";
   				}
   				//'10%wt -20%wt
   				var ntn2=cmap1.TENTOTWEN;
   				if(ntn2==""||ntn2==null){
   					ntn2="0";
   				}
   				//20%wt -30%wt
   				var ntn3=cmap1.TWENTOTHIR;
   				if(ntn3==""||ntn3==null){
   					ntn3="0";
   				}
   				//30%wt -40%wt'
   				var ntn4=cmap1.THIRTOFOR;
   				if(ntn4==""||ntn4==null){
   					ntn4="0";
   				}
   				//40%wt -50%wt'
   				var ntn5=cmap1.FORTOFIF;
   				if(ntn5==""||ntn5==null){
   					ntn5="0";
   				}
   				//'50%wt以上'
   				var ntn6= cmap1.MORETHANFIF;
   				if(ntn6==""||ntn6==null){
   					ntn6="0";
   				}
   				var erf= cmap1.ERF;
   				if(erf==""||erf==null){
   					erf="0";
   				}
var getContextPath=$("#getContextPath").val();
   				html+=
   					'<tr><td class="first">内部金属损失总数</td><td><a href="javascript:void(0);"to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06302\'">'
   					+count1+
   					'</a></td></tr><tr class="second-tr"><td class="first">0%wt -10%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06302\'&beginDepth=0&endDepth=10">'
   					+ntn1+
   					'</a></td></tr><tr><td class="first">10%wt -20%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06302\'&beginDepth=10&endDepth=20">'
   					+ntn2+
   					'</a></td></tr><tr class="second-tr"><td class="first">20%wt -30%wt</td><td><a href="javascript:void(0);"to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06302\'&beginDepth=20&endDepth=30">'
   					+ntn3+
   					'</a></td></tr><tr><td class="first">30%wt -40%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06302\'&beginDepth=30&endDepth=40">'
   					+ntn4+
   					'</a></td></tr><tr class="second-tr"><td class="first">40%wt -50%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06302\'&beginDepth=40&endDepth=50">'
   					+ntn5+
   					'</a></td></tr><tr><td class="first">50%wt以上</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06302\'&beginDepth=50">'
   					+ntn6+
   					'</a></td></tr ><tr class="second-tr"><td class="first">ERF＞1.0 </td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06302\'&erf=1">'
   					+erf+
   					'</a></td></tr> <tr>'
   	            +'<td class="first">最大深度的金属损失</td>'
   	            +'<td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06302\'&maxDepth=1">'+maxMatal+'</a></td> </tr><tr class="second-tr">'
   	            +'<td class="first">最大ERF值</td>'
   	            +'<td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06302\'&maxErf=1">'+maxErf+'</a></td>'
   	        	+'</tr>'
   	        	
   	   			
   	        	$("#MTNS").empty();
   				$("#MTNS").append(html);
   				
   			//数据追加METALOSS_TYPE_NBJSSS
   	   			var htmlmtw='';
   	   			//获取追加数据+外部金属损失
   	   			cmap2 = data.smap.METALOSS_TYPE_WBJSSS.List;
   	   			count2 = data.smap.METALOSS_TYPE_WBJSSS.allcount;
   	   			var maxErf2=0;//最大erf
	   			var maxMatal2=0;//最大金属损失
	   			if(count2!=0){
	   			 maxErf2=1;
	   			 maxMatal2=1;
	   			}
	   			if(count2==""||count2==null){
	   			count2="0";
	   			}
   	   			//0%wt -10%wt
   				var mtw1=cmap2.ZEROTOTEN;
   				if(mtw1==""||mtw1==null){
   					mtw1="0";
   				}
   				//'10%wt -20%wt
   				var mtw2=cmap2.TENTOTWEN;
   				if(mtw2==""||mtw2==null){
   					mtw2="0";
   				}
   				//20%wt -30%wt
   				var mtw3=cmap2.TWENTOTHIR;
   				if(mtw3==""||mtw3==null){
   					mtw3="0";
   				}
   				//30%wt -40%wt'
   				var mtw4=cmap2.THIRTOFOR;
   				if(mtw4==""||mtw4==null){
   					mtw4="0";
   				}
   				//40%wt -50%wt'
   				var mtw5=cmap2.FORTOFIF;
   				if(mtw5==""||mtw5==null){
   					mtw5="0";
   				}
   				//'50%wt以上'
   				var mtw6= cmap2.MORETHANFIF;
   				if(mtw6==""||mtw6==null){
   					mtw6="0";
   				}
   				var erf2= cmap2.ERF;
   				if(erf2==""||erf2==null){
   					erf2="0";
   				}
   				
   				htmlmtw+=
   					'<tr><td class="first">外部金属损失总数</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06301\'">'
   					+count2+
   					'</a></td></tr><tr class="second-tr"><td class="first">0%wt -10%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06301\'&beginDepth=0&endDepth=10">'
   					+mtw1+
   					'</a></td></tr><tr><td class="first">10%wt -20%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06301\'&beginDepth=10&endDepth=20">'
   					+mtw2+
   					'</a></td></tr><tr class="second-tr"><td class="first">20%wt -30%wt</td><td><a href="javascript:void(0);"to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06301\'&beginDepth=20&endDepth=30">'
   					+mtw3+
   					'</a></td></tr><tr><td class="first">30%wt -40%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06301\'&beginDepth=30&endDepth=40">'
   					+mtw4+
   					'</a></td></tr><tr class="second-tr"><td class="first">40%wt -50%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06301\'&beginDepth=40&endDepth=50">'
   					+mtw5+
   					'</a></td></tr><tr><td class="first">50%wt以上</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06301\'&beginDepth=50">'
   					+mtw6+
   					'</a></td></tr ><tr class="second-tr"><td class="first">ERF＞1.0 </td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06301\'&erf=1">'
   					+erf+
   					'</a></td></tr> <tr>'
   	            +'<td class="first">最大深度的金属损失</td>'
   	            +'<td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06301\'&maxDepth=1">'+maxMatal2+'</a></td> </tr><tr class="second-tr">'
   	            +'<td class="first">最大ERF值</td>'
   	            +'<td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06301\'&maxErf=1">'+maxErf2+'</a></td>'
   	        	+'</tr>'
   	        	$("#MTWS").empty();
   				$("#MTWS").append(htmlmtw);
   				
   				
   			//数据追加METALOSS_TYPE_WBZCQX
   	   			var htmlmtwx='';
   	   			//获取追加数据+外部制造缺陷
   	   			cmap3 = data.smap.METALOSS_TYPE_WBZCQX.List;
	   	   		count3 = data.smap.METALOSS_TYPE_WBZCQX.allcount;
	   	   		console.log(count3)
	   	   	var maxErf3=0;//最大erf
   			var maxMatal3=0;//最大金属损失
   			if(count3!=0){
   			 maxErf3=1;
   			 maxMatal3=1;
   			}
	   			if(count3==""||count3==null){
	   			count3="0";
	   			}
   	   			//0%wt -10%wt
   				var mtwx1=cmap3.ZEROTOTEN;
   				if(mtwx1==""||mtwx1==null){
   					mtwx1="0";
   				}
   				//'10%wt -20%wt
   				var mtwx2=cmap3.TENTOTWEN;
   				if(mtwx2==""||mtwx2==null){
   					mtwx2="0";
   				}
   				//20%wt -30%wt
   				var mtwx3=cmap3.TWENTOTHIR;
   				if(mtwx3==""||mtwx3==null){
   					mtwx3="0";
   				}
   				//30%wt -40%wt'
   				var mtwx4=cmap3.THIRTOFOR;
   				if(mtwx4==""||mtwx4==null){
   					mtwx4="0";
   				}
   				//40%wt -50%wt'
   				var mtwx5=cmap3.FORTOFIF;
   				if(mtwx5==""||mtwx5==null){
   					mtwx5="0";
   				}
   				//'50%wt以上'
   				var mtwx6= cmap3.MORETHANFIF;
   				if(mtwx6==""||mtwx6==null){
   					mtwx6="0";
   				}
   				var erf3= cmap3.ERF;
   				if(erf3==""||erf3==null){
   					erf3="0";
   				}
   				
   				htmlmtwx+=
   					'<tr><td class="first">外部制造缺总数</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06303\'">'
   					+count3+
   					'</a></td></tr><tr class="second-tr"><td class="first">0%wt -10%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06303\'&beginDepth=0&endDepth=10">'
   					+mtwx1+
   					'</a></td></tr><tr><td class="first">10%wt -20%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06303\'&beginDepth=10&endDepth=20">'
   					+mtwx2+
   					'</a></td></tr><tr class="second-tr"><td class="first">20%wt -30%wt</td><td><a href="javascript:void(0);"to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06303\'&beginDepth=20&endDepth=30">'
   					+mtwx3+
   					'</a></td></tr><tr><td class="first">30%wt -40%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06303\'&beginDepth=30&endDepth=40">'
   					+mtwx4+
   					'</a></td></tr><tr class="second-tr"><td class="first">40%wt -50%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06303\'&beginDepth=40&endDepth=50">'
   					+mtwx5+
   					'</a></td></tr><tr><td class="first">50%wt以上</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06303\'&beginDepth=50">'
   					+mtwx6+
   					'</a></td></tr ><tr class="second-tr"><td class="first">ERF＞1.0 </td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06303\'&erf=1">'
   					+erf+
   					'</a></td></tr> <tr>'
   	            +'<td class="first">最大深度的金属损失</td>'
   	            +'<td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06303\'&maxDepth=1">'+maxMatal3+'</a></td> </tr><tr class="second-tr">'
   	            +'<td class="first">最大ERF值</td>'
   	            +'<td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06303\'&maxErf=1">'+maxErf3+'</a></td>'
   	        	+'</tr>'
   	        	$("#MTWX").empty();
   				$("#MTWX").append(htmlmtwx);
   				
   			//数据追加METALOSS_TYPE_NBZCQX
   	   			var htmlmtnx='';
   	   			//获取追加数据+外部制造缺陷
   	   			cmap4 = data.smap.METALOSS_TYPE_NBZCQX.List;
	   	   		count4 = data.smap.METALOSS_TYPE_NBZCQX.allcount;
		   	 	var maxErf4=0;//最大erf
	   			var maxMatal4=0;//最大金属损失
	   			console.log(count4)
	   			if(count4!=0){
	   			 maxErf4=1;
	   			 maxMatal4=1;
	   			}
	   			 if(count4==""||count4==null){
	   			count4="0";
	   			} 
   	   			//0%wt -10%wt
   				var mtnx1=cmap4.ZEROTOTEN;
   				if(mtnx1==""||mtnx1==null){
   					mtnx1="0";
   				}
   				//'10%wt -20%wt
   				var mtnx2=cmap4.TENTOTWEN;
   				if(mtnx2==""||mtnx2==null){
   					mtnx2="0";
   				}
   				//20%wt -30%wt
   				var mtnx3=cmap4.TWENTOTHIR;
   				if(mtnx3==""||mtnx3==null){
   					mtnx3="0";
   				}
   				//30%wt -40%wt'
   				var mtnx4=cmap4.THIRTOFOR;
   				if(mtnx4==""||mtnx4==null){
   					mtnx4="0";
   				}
   				//40%wt -50%wt'
   				var mtnx5=cmap4.FORTOFIF;
   				if(mtnx5==""||mtnx5==null){
   					mtnx5="0";
   				}
   				//'50%wt以上'
   				var mtnx6= cmap4.MORETHANFIF;
   				if(mtnx6==""||mtnx6==null){
   					mtnx6="0";
   				}
   				var erf4= cmap4.ERF;
   				if(erf4==""||erf4==null){
   					erf4="0";
   				}
   				
   				htmlmtnx+=
   					'<tr><td class="first">内部制造缺陷总数</td><td><a href="javascript:void(0);">'
   					+count4+
   					'</a></td></tr><tr class="second-tr"><td class="first">0%wt -10%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06304\'&beginDepth=0&endDepth=10">'
   					+mtnx1+
   					'</a></td></tr><tr><td class="first">10%wt -20%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06304\'&beginDepth=10&endDepth=20">'
   					+mtnx2+
   					'</a></td></tr><tr class="second-tr"><td class="first">20%wt -30%wt</td><td><a href="javascript:void(0);"to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06304\'&beginDepth=20&endDepth=30">'
   					+mtnx3+
   					'</a></td></tr><tr><td class="first">30%wt -40%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06304\'&beginDepth=30&endDepth=40">'
   					+mtnx4+
   					'</a></td></tr><tr class="second-tr"><td class="first">40%wt -50%wt</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06304\'&beginDepth=40&endDepth=50">'
   					+mtnx5+
   					'</a></td></tr><tr><td class="first">50%wt以上</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06304\'&beginDepth=50">'
   					+mtnx6+
   					'</a></td></tr ><tr class="second-tr"><td class="first">ERF＞1.0 </td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06304\'&erf=1">'
   					+erf+
   					'</a></td></tr> <tr>'
   	            +'<td class="first">最大深度的金属损失</td>'
   	            +'<td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06304\'&maxDepth=1">'+maxMatal4+'</a></td> </tr><tr class="second-tr">'
   	            +'<td class="first">最大ERF值</td>'
   	            +'<td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06304\'&maxErf=1">'+maxErf4+'</a></td>'
   	        	+'</tr>'
   	        	$("#mtnx").empty();
   				$("#mtnx").append(htmlmtnx);
   				
   				
   				var allcountHtml='';
   				var allcount =  Number(count1) + Number(count2) + Number(count3) + Number(count4) ;
   				var maxAllMotal=0;
   				var maxAllErf=0;
   				if(allcount!=0){
   					maxAllMotal=1;
   	   				maxAllErf=1;
   				}
   				if(allcount==""||allcount==null){
   					allcount="0";
   				}
   				var erfCount =  Number(erf) + Number(erf3) + Number(erf2) + Number(erf4) ;
   				if(erfCount==""||erfCount==null){
   					erfCount="0";
   				}
   				allcountHtml+=
   				'<tr><td class="first">所有金属损失数量</td><td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1">'+allcount+'</a></td>'
            	+'</tr> <tr class="second-tr"><td class="first">外部金属损失数量</td>'
                +'<td><a href="javascript:void(0);"to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06301\'">'+count2+'</a></td></tr> <tr>'
                +'<td class="first">内部金属损失数量</td>'
                +'<td><a href="javascript:void(0);"to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06302\'">'+count1+'</a></td></tr><tr class="second-tr">'
                +'<td class="first">外部制造缺陷数量</td>'
                +'<td><a href="javascript:void(0);"to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06303\'">'+count3+'</a></td></tr> <tr>'
                +'<td class="first">内部制造缺陷数量</td>'
                +'<td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&typeIds=\'1E3290704BF1749EE0530E0AA8C06304\'">'+count4+'</a></td> </tr><tr class="second-tr">'
                +'<td class="first">ERF＞1.0 </td>'
                +'<td><a href="javascript:void(0);"to="'+getContextPath+'/insp/metalLoss.html?t_=1&erf=1">'+erfCount+'</a></td></tr><tr>'
                +'<td class="first">最大深度的金属损失</td>'
                +'<td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&maxDepth=1">'+maxAllMotal+'</a></td></tr><tr class="second-tr">'
                +'<td class="first">最大ERF值</td>'
                +'<td><a href="javascript:void(0);" to="'+getContextPath+'/insp/metalLoss.html?t_=1&maxErf=1">'+maxAllErf+'</a></td></tr>'
   				
                $("#allmt").empty();
   				$("#allmt").append(allcountHtml);
   				
   				//特征统计柱状图
   				//外部金属损失；   METALOSS_TYPE_WBJSSS
   				//内部金属损失；   METALOSS_TYPE_NBJSSS
   				//外部制造缺陷；  METALOSS_TYPE_WBZCQX
   				//内部制造缺陷；   METALOSS_TYPE_NBZCQX
   				//所有金属损失       ALLMETALOSS
   				bmap = data.bar.METALOSS_TYPE_WBJSSS;
   				
   				var picECharts = new PicEChart();
   				var dat1 = new Array();
   				var Axisdata1 = new Array();
   				for (var i=0 ;i<=9;i++){
   					
   					Axisdata1.push(bmap[i].minorCode);
   					dat1.push(bmap[i].value);
   				}
   				
   				picECharts.addbar({type:'bar',title:'',name:'',Axisdata:Axisdata1,data:dat1,divObject:'tzb'});
   			
   				//内部金属损失
   				bmap2 = data.bar.METALOSS_TYPE_NBJSSS;
   				var dat2 = new Array();
   				var Axisdata2 = new Array();
   			
   				for (var i=0 ;i<=9;i++){
   					Axisdata2.push(bmap2[i].minorCode);
   					dat2.push(bmap2[i].value);
   				}
   		
   				picECharts.addbar({type:'bar',title:'',name:'',Axisdata:Axisdata2,data:dat2,divObject:'tza'});
   			
   				//外部制造缺陷；
   				bmap3 = data.bar.METALOSS_TYPE_WBZCQX;
   				var dat3 = new Array();
   				var Axisdata3 = new Array();
   			
   				for (var i=0 ;i<=9;i++){
   					Axisdata3.push(bmap3[i].minorCode);
   					dat3.push(bmap3[i].value);
   				}
   				
   				picECharts.addbar({type:'bar',title:'',name:'',Axisdata:Axisdata3,data:dat3,divObject:'tzd'});
   				//外部制造缺陷；
   				bmap4 = data.bar.METALOSS_TYPE_NBZCQX;
   				
   				var dat4 = new Array();
   				var Axisdata4 = new Array();
   			
   				for (var i=0 ;i<=9;i++){
   					Axisdata4.push(bmap4[i].minorCode);
   					dat4.push(bmap4[i].value);
   				}
 
   				picECharts.addbar({type:'bar',title:'',name:'',Axisdata:Axisdata4,data:dat4,divObject:'tzc'});
   			
   				//所有金属损失
   				bmap5 = data.bar.ALLMETALOSS;
   				var dat5 = new Array();
   				var Axisdata5 = new Array();
   			
   				for (var i=0 ;i<=9;i++){
   					Axisdata5.push(bmap5[i].minorCode);
   					dat5.push(bmap5[i].value);
   				}
   				
   				picECharts.addbar({type:'bar',title:'',name:'',Axisdata:Axisdata5,data:dat5,divObject:'tzt'});
   			
   			}
   		});
   
       }

</script>

</body>
</html>